public class UserAccount {
    private int accountNumber;
    private String firstName,lastName;
    private double accountBalance;
    private String password;
    
    public UserAccount() {
        
    }
    
    public UserAccount(int n, String f, String l) {
        this.accountNumber = n;
        this.firstName = f;
        this.lastName = l;
        this.accountBalance = 0;
        this.password = "";
    }
    
    public UserAccount(int n, String f, String l, double b) {
        this.accountNumber = n;
        this.firstName = f;
        this.lastName = l;
        this.accountBalance = b;
        this.password = "";
    }
    
    public UserAccount(int n, String f, String l, double b, String p) {
        this.accountNumber = n;
        this.firstName = f;
        this.lastName = l;
        this.accountBalance = b;
        this.password = p;
    }
    
    public double getAccountBalance() {
        return accountBalance;
    }
    
    public int getAccountNumber() {
        return accountNumber;
    }
    
    public String getFirstName() {
        return firstName;
    }
    
    public String getLastName() {
        return lastName;
    }
    
    public String getPassword() {
        return password;
    }
    
    public void setAccountBalance(double accountBalance) {
        this.accountBalance = accountBalance;
    }
    
    public void setAccountNumber(int accountNumber) {
        this.accountNumber = accountNumber;
    }
    
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }
    
    public void setLastName(String lastName) {
        this.lastName = lastName;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    public void output() {
        System.out.format("%1$5d %2$-15s %3$-15s %4$10.3f %5$-10s\n",
                accountNumber,
                firstName,
                lastName,
                accountBalance,
                password);
    }
}
